package edu.mis.core.conf;

import com.jfinal.config.Routes;

import edu.mis.modules.blog.BlogController;
import edu.mis.modules.customer.CustomerController;
import edu.mis.modules.index.IndexController;
import edu.mis.modules.member.MemberController;
import edu.mis.modules.orderform.OrderformController;
import edu.mis.modules.orderformitem.OrderformitemController;
import edu.mis.modules.orderproduct.OrderproductController;
import edu.mis.modules.orderproductitem.OrderproductitemController;
import edu.mis.modules.product.ProductController;
import edu.mis.modules.project.ProjectController;
import edu.mis.modules.projectvariety.ProjectVarietyController;
import edu.mis.modules.recharge.RechargeController;
import edu.mis.modules.role.RoleController;
import edu.mis.modules.room.RoomController;
import edu.mis.modules.user.UserController;
import edu.mis.modules.variety.VarietyController;

/**
 * 后台路由
 *
 */
public class AdminRoutes extends Routes{
	@Override
	public void config() {
		add("/", IndexController.class, "/admin");	// 第三个参数为该Controller的视图存放路径，省略则与第一个参数相同
		add("/blog", BlogController.class,"/admin/blog");
		add("/customer", CustomerController.class,"/admin/customer");
		add("/member", MemberController.class,"/admin/member");
		add("/user", UserController.class,"/admin/user");
		add("/role", RoleController.class,"/admin/role");
		add("/variety", VarietyController.class,"/admin/variety");
		add("/product", ProductController.class,"/admin/product");
		add("/room", RoomController.class,"/admin/room");
		add("/projectvariety", ProjectVarietyController.class,"/admin/projectvariety");
		add("/project", ProjectController.class,"/admin/project");
		add("/orderform", OrderformController.class,"/admin/orderform");
		add("/orderformitem", OrderformitemController.class,"/admin/orderformitem");		
		add("/orderproduct", OrderproductController.class,"/admin/orderproduct");
		add("/orderproductitem", OrderproductitemController.class,"/admin/orderproductitem");
		add("/recharge", RechargeController.class,"/admin/recharge");
		
	}
	
	 
	
	
	
	
	

}
